package com.example.jnet.config;

import lombok.Data;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Component;

@Component
@Data
public class ServerConfig {
    @Value("${netty.server.config.host}")
    private String host;

    @Value("${netty.server.config.port}")
    private Integer port;

    @Value("${netty.server.config.idleTimeout}")
    private Integer idleTimeout;

    @Value("${serviceName}")
    private String serviceName;
}

